import Vue from 'vue'
import Vuex from 'vuex'
import user from './user'
Vue.use(Vuex)
const state = {
  username: 'MR.liu'
}
const mutations = {
  setUser (state, name) {
    state.username = name
  }
}
export default new Vuex.Store({
  state,
  mutations,
  modules: {
    user: user
  }
})
